package com.hbx.gift.client;

import com.hbx.gift.domain.LoginUser;
import com.hbx.gift.fallbcak.LoginUserFallbackFactory;
import com.hbx.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "auth-service",fallbackFactory = LoginUserFallbackFactory.class)
public interface loginUserFeignClient {

    @PutMapping("/loginUser")
    public AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);
}
